
module.exports = app=>{
    const {STRING} = app.Sequelize;
    const Info = app.model.define('info',{
        info_name:{
            type:STRING,
            unique: true,
            allowNull: false,
            comment:'项目名称'
        },
        
    })
    Info.associate = function () {
        app.model.Info.hasMany(app.model.Haha, {
            foreignKey: 'project_name',
        })
    }
    return Info
}